<?php
// require(ZEEGING_PATH."Librarys".DIRECTORY_SEPARATOR.'LottoBase.class.php');
defined('IN_ZEEGING') or die('Access Denied');
class ApiBaseController extends Controller{
	private function _response($obj,$httpCode=200,$statusCode=0,$message=""){
		echo json_encode(array(
			"status"=>$httpCode,
			"code"=>$statusCode,
			"message"=>$message,
			"data"=>$obj
		));
	}
	protected function response($obj){
		$this->_response($obj);
	}
	protected function responseError($message="Unknown Error",$statusCode=-1,$httpCode=200){
		$this->_response(null,$httpCode,$statusCode,$message);
	}
}
//------------------------------------------------
//End of File : /Controllers/IndexController.class.php
//------------------------------------------------